        <?php 
            $webmix_id = $this->webmix_id;
            $ajax = $this->ajax;
            $webmix = $this->webmix = Engine_Api::_()->getItem('webmixes',$this->webmix_id);
            
        ?>
        <?php 
            $blockTable = Engine_Api::_()->getDbtable('blocks','webmix');
            $blocks = array();
            $hadload = 0;
            if(empty($ajax)) {
                $a = $this->webmix->parent_id;
                if(empty($a)) $a = $webmix_id;
                $blocks = $blockTable->getBlocks($a);
                $hadload = 1;
            }
        ?>
        <?php $backgound = Engine_Api::_()->getApi('settings','core')->getSetting('webmix.block.background','white');
            $wb = Engine_Api::_()->getApi('settings','core')->getSetting('webmix.webmix.background','#FFFFFF');
            $c = Engine_Api::_()->getApi('settings','core')->getSetting('webmix.block.color','#CCCCCC');
        ?>
        <div id="filling-<?php echo $webmix_id?>" class="filling" >
            <input name="hadload" class="hadload" type="hidden" value="<?php echo $hadload?>" />
            <?php foreach($blocks as $block):?>
                <a rel="34" onmouseover ="hiddenCreate(this)" onmouseout="showCreate(this)" title="<?php echo  $block->getCompanyName();?>" class=" block_key-<?php if (!empty($webmix->content_type)) echo $block->key; else echo 0 ;?> webmix_content_type-<?php echo $webmix->content_type?> smark smark-color-<?php echo $backgound?> custommenucontext  col<?php echo $block->position_y?> row<?php echo $block->position_x?>  white widget-launcher  search webmix_id-<?php echo $webmix_id ?>  block_id-<?php echo $block->block_id?> company_id-<?php echo $block->company_id?>  owner_id-<?php echo $block->company_owner?> company_approve-<?php echo $block->isCompanyApproved()?>" id="smark-<?php echo $block->block_id?>" href="javascript:void(0);"  hreflang="<?php echo $block->getLink();?>">
        			<span  class="smark-icon  custommenucontext" style="background: url(<?php echo $block->getPhotoUrl('thumb.normal');?>) no-repeat;  /* background-size: 83px auto; */ background-position: center center;"></span><span class="smark-type type-widget search custommenucontext"></span>
        			<span class="smark-name  custommenucontext" style="color:<?php echo $c?>; font-size:11px;"><?php if(empty($block->photo_id)) echo $block->getCompanyName();?></span>	
                </a>
            <?php endforeach; ?>
        
        	<div rel="20740" class="smark width4 height2 fixed col3 row2 widget widget-container fixed search" id="smark-13303965" style="background-image: url(<?php echo $this->baseUrl().'/application/modules/Webmix/externals/images/webmix'?>/bg-widget-4x2_2.png);">
                <div class="widget-inner-container"><!--?xml version="1.0" encoding="UTF-8"?-->
                     
                   
                    <div id="google-search" >
                    	<div id="g-top-bar" class="g-top-bar">
                    			<span class="g-nav active g-nav-internet" id="g-nav-internet">Internet</span>
                    			<span class="g-nav g-nav-images" id="g-nav-images">Images</span>
                    			<span class="g-nav g-nav-maps" id="g-nav-maps">Maps</span>
                    			<span class="g-nav g-nav-news" id="g-nav-news">News</span>
                    			<span class="g-nav g-nav-weather" id="g-nav-weather">Weather</span>
                    	</div>
                    	<div id="google-content" class="google-content">
                            <div id="g-internet" class="g-search searchmod-src g-nav-internet">
                            			<span id="glogo" class="glogo"></span>
                            			<form id="cse-search-box" class="gsearchform" target="_blank" method="GET" action="http://www.google.com/cse">
                            				<input type="text" autocomplete="off" class="g-input g-nav-internet-input" id="g-search" value="" name="q">
                            				<!-- custom search -->
                            				<input type="hidden" value="en" name="hl">
                            				<input type="hidden" value="UTF-8" name="ie">
                            				<input type="hidden" value="<?php echo Engine_Api::_()->webmix()->getAdsenseCode()?>" name="cx">
                            
                            				<input type="submit" id="g-submit" class="g-input" value="" name="sa">
                            			</form>
                            		</div>
                    		<div id="g-images" class="g-search searchmod-hidden g-nav-images">
                    			<span id="glogo-images" class="glogo"></span>
                    			<form class="gsearchform" target="_blank" method="GET" action="http://www.google.com/images">
                    				<input type="text" autocomplete="off" class="g-input g-nav-images-input" id="g-search" value="" name="q">
                    				<input type="hidden" value="en" name="hl">
                    				<input type="hidden" value="UTF-8" name="ie">
                    				<input type="submit" id="g-submit" class="g-input" value="" name="sa">
                    			</form>
                    		
                    		</div>
                    		<div id="g-maps" class="g-search searchmod-hidden g-nav-maps">
                    			<span id="glogo-maps" class="glogo"></span>
                    			<form class="gsearchform" target="_blank" method="GET" action="http://www.google.com/maps">
                    				<input type="text" autocomplete="off" class="g-input g-nav-maps-input" id="g-search" value="" name="q">
                    				<input type="hidden" value="en" name="hl">
                    				<input type="hidden" value="UTF-8" name="ie">
                    				<input type="submit" id="g-submit" class="g-input" value="" name="sa">
                    			</form>
                    		</div>
                    		<div id="g-news" class="g-search searchmod-hidden g-nav-news">
                    			<div class="feed-container" id="gnews-content"> </div>
                    		</div>
                    		<div id="g-weather" class="g-search searchmod-hidden g-weather">
                    			<div class="active gweather-content" id="gweather-content"> 
                    				<h2><span id="gtitle" class="gtitle"><?php echo $this->webmix->location?></span><span id="gedit" class="gedit">edit</span></h2>
                                    <div class="weather_loading"><img src="<?php echo $this->baseUrl()?>/application/modules/Core/externals/images/loading.gif" /></div>
                    				<div id="day0" class="day day0"></div>
                    				<div id="day1" class="day day1"></div>
                    				<div id="day2" class="day day2"></div>
                    				<div class="cb"></div>
                    			</div>
                    			<div id="gweather-settings" class="gweather-settings"> 
                    				<fieldset>
                    				    <legend>Choose a city</legend>
                    				    <p>
                    					    <input class="cities_input" value="" id="searchCity" name="city-search">
                    					  
                                            <span id="gsearchButton" class="gsearchButton"><?php echo $this->translate("Search")?></span>
                    				  	</p>
                                            <br />
                    					  <p>  
                    						  <select id="cities" class="cities_select" name="city-code">
                                                    <option value="<?php echo $this->webmix->location ?>"><?php echo $this->webmix->location ?></option>
                    						  </select>
                    					  </p>	  
                    					  <p>
                                          <!--
                    						  <input type="radio" checked="" value="m" name="temp-scale" id="scale-c"> <label for="scale-c">Celsius</label>
                    						  <input type="radio" value="s" name="temp-scale" id="scale-f"> <label for="scale-f">Fahrenheit</label>
                                        -->
                    					  </p>
                    					  <p>
                                            <span id="gSearchSave" class="gSearchSave"><?php echo $this->translate("Save")?></span>
                    					  	
                    					  </p>
                    				</fieldset>
                    				<span id="gcancel" class="gcancel"><?php echo $this->translate("Cancel")?></span>
                    			</div>
                    		</div>
                    	</div>
                    </div>
                    
                    
                    <?php if(!empty($webmix->content_type)) :?>
                        <div id ="webmix_muisc_play_area" class="webmix_muisc_play_area" style="width:290px; height:186px; display:none;" >
                            <iframe id="webmix_iframe_muisc" src="" width="820" height="1000px;" frameborder="0" allowtransparency="true"></iframe>
                            <!-- https://embed.spotify.com/?uri=spotify:album:1WFxo6Ylt20VEIXNbdskn4 -->
                        </div>
                    <?php endif;?>
                    
                </div>
            </div>
        	
       	</div>
        <script type="text/javascript">
        <?php if(empty($ajax)): ?>
       
            showSetDefault(<?php echo $this->webmix->default?>);
         <?php endif;?>
        </script>